<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.pengtu.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="nav" content="0" />
<meta name="acc" content="1-0" />
<title>发文管理</title>
</head>
<body>
	<div id="heading" class="convey">
		<h6>发文管理</h6>
	</div>
	<div id="message">
		<s:actionmessage theme="custom" cssClass="success" />
	</div>
	<form action="${ctx }/admin/convey!info.action" method="get"
		class="yform" id="mainForm">
		<input type="hidden" name="filter_LIKES_status"
			id="filter_LIKES_status" value="${param['filter_LIKES_status'] }" />
		<input type="hidden" name="acc" id="acc" value="${param['acc'] }" />
		<div id="filter">
			<ul>
				<li>发文标题：<input type="text" name="filter_LIKES_title"
					value="${param['filter_LIKES_title']}" /></li>
				<li>发文字号：<input type="text" name="filter_LIKES_num"
					value="${param['filter_LIKES_num']}" /></li>
				<li>公文类型：<input type="text" name="filter_LIKES_type"
					value="${param['filter_LIKES_type']}" /></li>
			</ul>
			<div class="type-button">
				<input type="button" value="查询" onclick="search();" class='search' />
			</div>
		</div>
		<div id="content">
			<table>
				<tr>
					<th><a id="createDate"
						href="javascript:sort('createDate','asc')">序号</a></th>
					<th><a id="title" href="javascript:sort('title','asc')">发文标题</a>
					</th>
					<th><a id="num" href="javascript:sort('num','asc')">发文字号</a></th>
					<th><a id="type" href="javascript:sort('type','asc')">公文类型</a>
					</th>
					<th><a id="secret" href="javascript:sort('secret','asc')">密集程度</a>
					</th>
					<th><a id="crash" href="javascript:sort('crash','asc')">紧急程度</a>
					</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${page.result }" var="convey" varStatus="state">
					<tr>
						<td>${page.first+state.index }</td>
						<td><pt:text limit="15">${convey.title }</pt:text></td>
						<td>${convey.num }</td>
						<td>${convey.type }</td>
						<td><pt:code category="3054" code="${convey.secret }"></pt:code>
						</td>
						<td><pt:code category="3053" code="${convey.crash }"></pt:code>
						</td>
						<td><c:if test="${convey.status == '01' }">
								<a href="${ctx}/admin/convey!input.action?id=${convey.id}">编辑</a>
								<a href="${ctx}/admin/convey!delete.action?id=${convey.id}"
									onclick="return isProcess('将删除公文')">删除</a>
								<a href="${ctx}/admin/convey!start.action?id=${convey.id}"
									onclick="return isProcess();">提交</a>
							</c:if> <c:if test="${convey.status == '02' || convey.status == '03'}">
								<a href="${ctx}/admin/convey!input.action?id=${convey.id}">编辑</a>
								<a
									href="${ctx }/admin/convey!judge.action?id=${convey.id}&status=${convey.status}">流程处理</a>
							</c:if> <c:if
								test="${convey.status != '01' && convey.status != '02' && convey.status != '03'}">
								<a href="${ctx}/admin/convey!png.action?id=${convey.id}">查看</a>
								<a
									href="${ctx }/admin/convey!judge.action?id=${convey.id}&status=${convey.status}">流程处理</a>
							</c:if>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<jsp:include page="/common/page.jsp" flush="true" />
		<div class="type-button">
			<input type="button" value="新增" class="add"
				onclick="window.location.href='${ctx}/admin/convey!input.action'" />
		</div>
	</form>
</body>
</html>